package com.kang.mapper;

import com.kang.pojo.OrderSub;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 吃三明治派对中的康康
* @description 针对表【order_sub】的数据库操作Mapper
* @createDate 2022-04-25 19:16:24
* @Entity com.kang.pojo.OrderSub
*/
public interface OrderSubMapper {

    int deleteByPrimaryKey(Long id);

    int insert(OrderSub record);

    int insertSelective(OrderSub record);

    OrderSub selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderSub record);

    int updateByPrimaryKey(OrderSub record);

    //查询所有订单
    List<OrderSub> searchAllOrder();

    //通过oid删除订单
    int delByOid(@Param(value = "oid") String oid);

    void delAllShopping();

}
